home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / ramtest.arc / RAMTEST.DOC < prev    next >
Encoding:
Text File  |  1985-03-27  |  9.5 KB  |  331 lines

  1.  
  2.  
  3.  
  4.                                   RAMTEST                       Page 1
  5.  
  6.  
  7.                                   WARNING
  8.                                   -------
  9.  
  10.      Executing  this  program WILL destroy the contents of memory, in-
  11.      cluding RAM disks!
  12.  
  13.  
  14.      Now that you've been warned, I think you will find  this  program
  15.      useful,  not  only  in identifying an existing fault, but also as
  16.      part of a periodic maintainence program. This  program  has  been
  17.      developed  as an exhaustive test of an IBM PC's system RAM. It is
  18.      much more comprehensive than the PC Power On Self Test (POST) and
  19.      delivers diagnostic messages which are much easier to understand.
  20.  
  21.  
  22.      There are two different versions of the test. RAMTEST.COM is  the
  23.      test  which  should be used with the IBM PC and compatibles. Note
  24.      that it requires a fair amount of hardware compatibility to  work
  25.      properly. RAMTESTA.COM is the version to be used on the IBM PCAT.
  26.      The documentation for both versions is identical. For more infor-
  27.      mation on the required hardware compatibility, see page 3 of this
  28.      document.
  29.  
  30.      To start the test, just type RAMTEST at the DOS prompt. There are
  31.      no additional parameters.
  32.  
  33.      This test is best run from a floppy disk which has been formatted
  34.      using  the  /S  option and contains no other RAM-based utilities.
  35.      Some of the commonly available memory-resident utilities (for ex-
  36.      ample, SIDEKICK from BORLAND) 'take command' of  the  system  and
  37.      will cause RAMTEST to crash.
  38.  
  39.      RAMTEST  functions  in several distinct phases. After signing-on,
  40.      RAMTEST starts searching for the top of contiguous  memory.  This
  41.      search  is  performed  by examining RAM and not by consulting the
  42.      system configuration switches. Once the top of memory  is  found,
  43.      the  actual testing portion of the program is relocated and test-
  44.      ing begins.
  45.  
  46.      RAM is tested beginning with address 0:500 and  continues  up  to
  47.      but  not including the top 32k of the contiguous RAM below screen
  48.      memory. These limits were chosen for the  following  reasons.  1)
  49.      BIOS  uses RAM below 0:500 for scratch area and RAMTEST uses BIOS
  50.      exclusively for screen I/O. 2) The testing program needs a  place
  51.      to live undisturbed.
  52.  
  53.      RAM  is  tested  in 32k blocks. The pattern for the test is taken
  54.      from the BIOS ROMs. Randomness is added by use of iteration count
  55.      to modify the data. During PASS 1, each RAM location is  modified
  56.      and  then  verified.  This  insures that each location can be ac-
  57.      curately written to and read from. During PASS 2,  each  location
  58.      is  re-read  and  compared  to it's reference byte in ROM and the
  59.      parity bit is checked. This part of the  test  insures  that  the
  60.      parity  generating  and  checking  circuitry  is functioning cor-
  61.      rectly, that the address decoding is working  properly  and  that
  62.      there are no locations in RAM shorted to other locations.
  63.  
  64.  
  65.                 Copyright (c) 1985  J & C Computer Services           
  66.  
  67.  
  68.  
  69.  
  70.                                   RAMTEST                       Page 2
  71.  
  72.  
  73.      Should  no  errors occur during the two passes, RAMTEST announces
  74.      the successful completion of the test and prompts you to turn off
  75.      the computer to stop the test. If not stopped,  however,  RAMTEST
  76.      will  start  over,  using  a different set of patterns each time.
  77.      Since some memory errors do not show  up  until  after  hours  of
  78.      operating  time,  if you're trying to track down a failure, it is
  79.      suggested that you let RAMTEST run awhile, perhaps overnight.
  80.  
  81.      Should an error occur, RAMTEST stops immediately, displays a mes-
  82.      sage identifying the error, and halts. Note that the only way  to
  83.      exit  this condition is to turn the computer off. A typical error
  84.      message is:
  85.  
  86.  
  87.           Memory contents failure.
  88.           Address = 5000:0000
  89.           Data is: 1B      Data should be: 1F
  90.  
  91.           Turn power off, wait 5 seconds, and turn power back on.
  92.  
  93.  
  94.      The above example shows that the failure occured on an  expansion
  95.      board  (System  memory extends to 0:FFFF on 64k motherboards, and
  96.      to 3000:FFFF on 256k motherboards. The presence of 4116 RAM chips
  97.      indicates a 64k motherboard.). It also shows that  bit  1  was  0
  98.      when  it  should have been 1. In cases like this, the RAM chip in
  99.      the bit 1 position is frequently at fault. The RAM chips are  the
  100.      most delicate components in the memory system, and the easiest to
  101.      test for defects. This is because the RAM chips are socketed (ex-
  102.      cept  for the first 16k or 64k) and the rest of the chips such as
  103.      address decoding and data buffers are rarely, if ever, socketed.
  104.  
  105.      The last two pages of this document diagram the location  of  the
  106.      RAM  chips  on  the motherboard for both 64k systems and the 256k
  107.      systems. Refer to the documentation that came  with  your  add-in
  108.      memory board for instructions on locating and replacing RAM chips
  109.      that  make up the memory above 1000:0 (64k motherboard) or 4000:0
  110.      (256k motherboard).
  111.  
  112.      The failure codes which are analyzed at  the  top  of  each  page
  113.      refer  to  the  code which the PC prints when an error is encoun-
  114.      tered during POST. If this occurs, the code will be printed,  the
  115.      speaker  will  beep,  the  screen will go blank, and the computer
  116.      will have to be turned off. This will all happen in the  span  of
  117.      about one second, so watch carefully to see the error code.
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.                 Copyright (c) 1985  J & C Computer Services           
  132.  
  133.  
  134.  
  135.  
  136.                                   RAMTEST                       Page 3
  137.  
  138.  
  139.      RAMTEST  is provided at no charge to the user. Feel free to share
  140.      it with your friends, but please do not give  away  altered  ver-
  141.      sions  or  versions  which have had the copyright notice removed.
  142.      The essence of 'user-supported' software is to  provide  personal
  143.      computer users with quality software without high prices, and yet
  144.      to  provide  incentive for programmers to continue to develop new
  145.      products. If you find this program useful,  a  contribution  ($10
  146.      suggested)  would be greatly appreciated. Any suggestions or com-
  147.      ments you may have are also welcome.
  148.  
  149.  
  150.                                  Jim Weisz
  151.                           J & C Computer Services
  152.                                P.O. Box 1356
  153.                             Lombard, Il.  60148
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.                            HARDWARE REQUIREMENTS
  165.  
  166.  
  167.      PC        NMI Enable/Disable port = 0A0H
  168.                RAM parity check control port = 61H  (bits 4 & 5   00xx0000)
  169.                Parity status port = 62H  (bits 7 & 8   xx000000)
  170.  
  171.  
  172.      PCAT      NMI Enable/Disable port = 70H
  173.                RAM parity check control port = 61H  (bits 2 & 3   0000xx00)
  174.                Parity status port = 61H  (bits 7 & 8   xx000000)
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.                 Copyright (c) 1985  J & C Computer Services           
  198.  
  199.  
  200.  
  201.  
  202.                              RAMTEST                       Page 4
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215. MEMORY FAILURE CODE ANALYSIS:  64k motherboard
  216.  
  217.  
  218.  
  219. SAMPLE FAILURE CODE:    4402 201
  220.                         |||| |||
  221.                         |||| +++---- SYSTEM CODE - INDICATES MEMORY FAILURE
  222.                         ||++-------- FAILED BIT - 00 INDICATES PARITY
  223.                         |+---------- FAILED 16K BLOCK - 0, 4, 8, OR C
  224.                         +----------- FAILED 64K SEGMENT
  225.  
  226.  
  227. SYSTEM BOARD  (Lower left corner when viewed from the front)
  228.  
  229. SEGMENT = 0000
  230.                         BIT                             FIRST 2 DIGITS OF
  231. ADDR            P       0   1   2   3   4   5   6   7   ERROR CODE
  232.  
  233. 0000 - 3FFF     *       *   *   *   *   *   *   *   *   00  (This row is
  234.                                                              soldered in.)
  235. 4000 - 7FFF     *       *   *   *   *   *   *   *   *   00
  236.  
  237. 8000 - BFFF     *       *   *   *   *   *   *   *   *   00
  238.  
  239. C000 - FFFF     *       *   *   *   *   *   *   *   *   00
  240.  
  241. SECOND 2
  242. DIGITS OF       00      01  02  04  08  10  20  40  80
  243. ERROR CODE
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.            Copyright (c) 1985  J & C Computer Services           
  264.  
  265.  
  266.  
  267.  
  268.                              RAMTEST                       Page 5
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281. MEMORY FAILURE CODE ANALYSIS:  256k motherboard
  282.  
  283.  
  284.  
  285. SAMPLE FAILURE CODE:    4402 201
  286.                         |||| |||
  287.                         |||| +++---- SYSTEM CODE - INDICATES MEMORY FAILURE
  288.                         ||++-------- FAILED BIT - 00 INDICATES PARITY
  289.                         |+---------- FAILED 16K BLOCK - 0, 4, 8, OR C
  290.                         +----------- FAILED 64K SEGMENT
  291.  
  292.  
  293. SYSTEM BOARD  (Lower left corner when viewed from the front)
  294.  
  295.                         BIT                             FIRST 2 DIGITS OF
  296. SEGMENT         P       0   1   2   3   4   5   6   7   ERROR CODE
  297.  
  298.  0000           *       *   *   *   *   *   *   *   *   0x  (This row is
  299.                                                              soldered in.)
  300.  1000           *       *   *   *   *   *   *   *   *   1x
  301.  
  302.  2000           *       *   *   *   *   *   *   *   *   2x
  303.  
  304.  3000           *       *   *   *   *   *   *   *   *   3x
  305.  
  306. SECOND 2
  307. DIGITS OF       00      01  02  04  08  10  20  40  80
  308. ERROR CODE
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.            Copyright (c) 1985  J & C Computer Services           
  330.  
  331.